<?=html::script('js/validator.js')?>
<div>
	<div class="box-h1">
		<h1<?=Kohana::lang('title.login')?></h1>
		<div class="box1 sform">
			<form action="<?=url::site('customer/checklogin')?>" onsubmit="return Validator.Validate(this,1)" method="post">
				<?php if($returnurl) { ?><input type="hidden" name="returnurl" value="<?=$returnurl?>"/><?php } ?>
				<h3>Log In:</h3>
				<ul>
					<li>
						<span class="label">Username: </span>
						<span class="required">*</span>
						<span><input name="username" dataType="ASCII" msg="用户名只能包含英文字母和数字" type="text"/></span>
					</li><li>
						<span class="label">Password: </span>
						<span class="required">*</span>
						<span><input name="password" dataType="Require" msg="请输入密码" type="password"/></span>
					</li><li>
						<span class="label"></span>
						<span class="required"></span>
						<span><input type="Submit" value="Login"/></span>
					</li>
				</ul>
			</form>
		</div>
	</div>
</div>